# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo03
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

import fileinput
f=fileinput.input('./urls.txt')
print(type(f))
print(f.readline().rstrip())
for line in f:
    line=line.rstrip()
    if line !='':
        print(f.lineno(),':',line)
    else:
        print(f.filename())